package net.csdn.business.common.domain.request.cla;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author likun
 * @date 2023/4/23 11:22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ClaCheckDTO implements Serializable {
    @NotNull(message = "appId 不能为空")
    @Positive(message = "appId 不合法")
    private Long appId;

    @NotNull(message = "installationId 不能为空")
    @Positive(message = "installationId 不合法")
    private Long installationId;

    @NotBlank(message = "userId 不能为空")
    private String userId;

    @NotNull(message = "repoId 不能为空")
    @Positive(message = "repoId 不合法")
    private Long repoId;

    /**
     * full_name xxx/xxx
     */
    @NotBlank(message = "repo 不能为空")
    private String repo;

    @Positive(message = "pull_number 不合法")
    private Integer pullNumber;
}